import Layout from '@/components/core/layout'

const router = {
  path: '/finance',
  name: 'finance',
  meta: {
    title: 'finance',
    icon: 'mdi-av-timer',
  },
  component: Layout,
  redirect: '/finance/index',
  children: [
    {
      path: 'index',
      name: 'accountManage',
      component: () => import('@/views/finance/index'),
      meta: {
        title: 'accountManage'
      }
    },
    {
      path: 'amounts_receivable',
      name: 'amountsReceivable',
      component: () => import('@/views/finance/amounts_receivable'),
      meta: {
        title: 'amountsReceivable'
      }
    },
    {
      path: 'accounts_payable',
      name: 'accountsPayable',
      component: () => import('@/views/finance/accounts_payable'),
      meta: {
        title: 'amountsReceivable'
      }
    },
    {
      path: 'collection_management',
      name: 'collectionManagement',
      component: () => import('@/views/finance/collection_management'),
      meta: {
        title: 'collectionManagement'
      }
    },
    {
      path: 'payment_management',
      name: 'paymentManagement',
      component: () => import('@/views/finance/payment_management'),
      meta: {
        title: 'paymentManagement'
      }
    },
  ]
}

export default router
